<!--
 * @Author: lujin49
 * @Date: 2024-12-03 09:41:26
 * @LastEditTime: 2024-12-24 09:53:58
 * @Description: 
-->
<!--
 Copyright 2023 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
  -->

<!DOCTYPE html>

<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="popup.css">
    <title>书签同步</title>
    <script src="popup.js" type="module"></script>
</head>


<body>
    <div id="syncdiv">
        <button id="syncButton">同步书签</button>
    </div>

    <div id="serverdiv">
        <label for="">服务器:</label><br>
        <input type="text" name="server" id="server" value="http://127.0.0.1:8080">
        <button type="button" id="saveServer">保存</button>
    </div>

    <!-- 添加认证对话框 -->
    <dialog id="authDialog">
        <form method="dialog">
            <div>
                <label for="username">用户名:</label>
                <input type="text" id="username" required>
            </div>
            <div style="margin-top: 5px;">
                <label for="password">密码:</label>
                <input type="password" id="password" required>
            </div>
            <div style="margin-top: 5px;">
                <button type="submit" id="confirmAuth">确认</button>
                <button type="button" id="cancelAuth">取消</button>
            </div>
        </form>
    </dialog>
</body>

</html>